package com.example.leetcode.stack;

class DinnerPlates {

    public DinnerPlates(int capacity) {

    }

    public void push(int val) {

    }

    public int pop() {

        return 0;
    }

    public int popAtStack(int index) {
        return 0;
    }
}

/**
 * Your DinnerPlates object will be instantiated and called as such:
 * DinnerPlates obj = new DinnerPlates(capacity);
 * obj.push(val);
 * int param_2 = obj.pop();
 * int param_3 = obj.popAtStack(index);
 */
public class leetcode1172 {
    public static void main(String[] args) {
        DinnerPlates D = new DinnerPlates(2);
        D.push(1);
        D.push(2);
        D.push(3);
        D.push(4);
        D.push(5);
        D.push(20);
        D.push(21);
        D.popAtStack(2);
        D.pop();
        D.pop();
        D.pop();
        D.pop();
        D.pop();
    }
}
